package com.init;

import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.stereotype.Component;

import javax.servlet.ServletContext;
import javax.servlet.ServletException;

/**
 * 初始化加载类
 */
@Component
public class ApplicationInitService implements ServletContextInitializer {


    @Override
    public void onStartup(ServletContext servletContext) throws ServletException {

        System.out.println("onStartup......");

       /* List<SystemNotice> noticeList = systemNoticeMapper.getSystemNoticeByCondition();
        servletContext.setAttribute("referenceData",noticeList);
        servletContext.setAttribute("currentTime", DateUtils.getFormtDate());*/
    }


}

